@echo off

set code_dest=..\..\ClientTest\Assets\Hotfix\
set data_dest=..\..\ClientTest\Assets\_bundles\

if not exist %code_dest% (
    echo target dir %code_dest% not exist
    pause
	exit
)
if not exist %data_dest% (
	echo target dir %data_dest% not exist
	pause
    exit
)

set template_src_dir=config_client\ConfigGenerator\Template\
set asset_src_dir=config_client\

set template_tar_dir=%code_dest%Templates\AutoGens\
set asset_tar_dir=%data_dest%templates\

if exist %template_tar_dir% rd /S /Q %template_tar_dir%
md %template_tar_dir%
xcopy /Y /S %template_src_dir%*.cs %template_tar_dir%

if exist %asset_tar_dir% rd /S /Q %asset_tar_dir%
md %asset_tar_dir%
xcopy /Y /S %asset_src_dir%*.json %asset_tar_dir%

echo ----------------------
echo --DONE
echo ----------------------
pause